<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

//Route::middleware('auth:api')->get('/user', function (Request $request) {
//    return $request->user();
//});

$api = app('Dingo\Api\Routing\Router');
$func = function ($api) {
    //需要token

    $api->group(['namespace' => 'App\Api\V2\Controller\Merchant', 'prefix' => 'v2/Merchant/Merchant', 'middleware' => 'merchant.api'], function ($api) {
        $api->get('store_open_pay_way_lists', 'MerchantController@store_open_pay_way_lists');
    });

};


$api->version('v1', $func);
